#include <graphics.h>
int main(){

    int x=300;
    int y=300;
    initgraph(1200,720);
    BeginBatchDraw();
    while (true)
    {
        ExMessage msg;
        while (peekmessage(&msg))
        {
           x = msg.x;
           y = msg.y;
        }
        cleardevice();
        solidcircle(x,y,100);
        FlushBatchDraw();
    }
    EndBatchDraw();
    return 0;
    
}